<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2024/1/13
 * Time: 11:47
 */

namespace app\middleware;
namespace app\middleware;

use think\facade\Cookie;
use think\Response;

class Admin
{
    private $controller = ['Login'];//跳过验证的控制器
    private $action = [];//跳过验证的方法
    private $controller_action = [];
    /**
     * ApiAuth鉴权
     * @param \think\facade\Request $request
     * @param \Closure $next
     * @return mixed|\think\response\Json
     */
    public function handle($request, \Closure $next): Response {
        return redirect('/admin/login');
    }
}